import Vue from 'vue'

import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		name: '华哥', //存储一个公共状态
		age: '22'
	},

	mutations: {
		showMe(state, msg ) {
			state.name = msg
		},
		showAge(state,age){
			state.age = age
		},
	}
})

export default store
